package teleradiologia.service;

import java.util.List;

import teleradiologia.domain.Ordertype;
import teleradiologia.repository.OrderingDao;
import teleradiologia.repository.OrdertypeDao;

public class OrdertypeManipulatorImpl implements OrdertypeManipulator{
	private OrdertypeDao ordertypeDao;
	@Override
	public void create(Ordertype ordertype) {
		this.ordertypeDao.create(ordertype);
		
	}

	@Override
	public void delete(Ordertype ordertype) {
		this.ordertypeDao.delete(ordertype);
		
	}

	@Override
	public List<Ordertype> getAll() {
		return this.ordertypeDao.getAll();
	}

	@Override
	public Ordertype getById(long id) {
		return this.ordertypeDao.getById(id);
	}

	@Override
	public void setOrdertypeDao(OrdertypeDao ordertypeDao) {
		this.ordertypeDao = ordertypeDao;
	}

	@Override
	public void update(Ordertype ordertype) {
		this.ordertypeDao.update(ordertype);
	}
}
